<?php
/**
 * Created by PhpStorm.
 * User: lihao
 * Date: 2017/9/8
 * Time: 下午3:56
 */

class Movie extends MY_Controller {
    public function __construct() {
        parent::__construct();
        $this->load->model('Movie_model');
    }

    public function movielist($page = 0) {
        $re = $this->Movie_model->movies($page);
        $this->load->view('movlist', array(
           'movies'=>$re
        ));
    }

    public function mid($id = 1) {
        $re = $this->Movie_model->detail($id);
        $this->load->view('movie', array(
            'movie'=>$re
        ));
    }
}